﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using System.Windows.Automation;
using System.Windows.Automation.Peers;
using System.Windows.Automation.Provider;
using System.Windows.Markup;
using System.Windows.Art;

namespace System.Windows.Elements
{
    //[ContentProperty("Child")]
    class ListBoxChannelItem
    {
        private readonly NumericBox child = new NumericBox();
        private ColorChannel channel;
        private String postfix;

        public ColorChannel Channel
        {
            get { return this.channel; }
            set 
            {
                this.channel = value;
                this.child.Tag = value;
            }
        }

        public String Postfix
        {
            get { return this.postfix; }
            set { this.postfix = value; }
        }

        public NumericBox Child
        {
            get { return this.child; }
            //set { this.child = value; }
        }

        public Style NumericStyle
        {
            get { return this.child.Style; }
            set { this.child.Style = value; }
        }

        public Decimal MinValue
        {
            get { return this.child.MinValue; }
            set { this.child.MinValue = value; }
        }

        public Decimal MaxValue
        {
            get { return this.child.MaxValue; }
            set { this.child.MaxValue = value; }
        }
    }
}
